/**
 * 类的只读变量设置方法 变量前加上 readonly 
 */
class A4{
    public readonly _name:string;
    constructor(name:string){
        this._name = name;
    }
}
let aa4 = new A4('xiaohua');
// 下面语句是无法给设置了只读的变量重新赋值的，会报错
// aa4._name = '小花';
console.log(aa4._name);


